<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jspf"%>
<!DOCTYPE html>
<html>
<head>
    <title>updateFile.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link rel="stylesheet" type="text/css" href="${proPath }/css/bootstrap.min.css">
<script type="text/javascript" src="${proPath }/js/jquery.min.js"></script>
<script type="text/javascript" src="${proPath }/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${proPath }/js/bootstrap-treeview.js"></script>
<script type="text/javascript" src="${proPath }/js/jquery-form.js"></script>
<script type="text/javascript" src="${proPath }/js/bootbox.js"></script>
</head>
<body>

<div class="modal-dialog modal-lg" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title">上传文件</h4>
			</div>
			<form enctype="multipart/form-data" method="POST" id="fileUploadForm" action="${proPath}/fileManagerController/fileUpload">
				<div class="modal-body">
					<div class="row">
					  <div class="col-md-12">
					  	<div class="form-group">
						    <label for="fileUpload">点击选择本地文件</label>
						    <input type="file" name="fileUpload" />
						    <input type="hidden" name="parentId" />
							<input type="hidden" name="parentStrCn"  />
							<input type="hidden" name="level"/>
						  </div>
					  </div>
					</div>	
					<div class="row">
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="sysType">系统类型 </label>
						    <select class="form-control" name="sysType">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==1 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="productName">产品名称</label>
						    <select  class="form-control" name="productName">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==2 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					</div>
					<div class="row">
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="productType">产品类型 </label>
						    <select class="form-control" name="productType">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==3 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="fileUploadSpecialNum">特殊单编号 </label>
  								 <select class="form-control" name="specialNum">
							    	<option value="">请选择</option>
							    	<c:forEach items="${spdList}" var="specialNum">
							    		<c:if test="${specialNum.type==9 }">
									       <option value="${specialNum.name }">${specialNum.name }</option>
									    </c:if>
									</c:forEach> 
								</select>
							
						  </div>
					  </div>
					</div>
					<div class="row">
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="productModel">产品型号 </label>
						    <select class="form-control" name="productModel">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==4 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
							
						  </div>
					  </div>
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="uploadUser">上传人员</label>
						    <select class="form-control" name="uploadUser">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==10 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					</div>
					<div class="row">
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="usageScenarios">使用场景</label>
						    <select class="form-control" name="usageScenarios">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==5 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="documentType">文档类型 </label>
						    <select class="form-control" name="documentType">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==6 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					</div>
					<div class="row">
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="version">文档版本 </label>
						    <select class="form-control" name="version">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==7 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					  <div class="col-md-6">
					  <div class="form-group">
						    <label for="materiel">物料编号</label>
						    <select class="form-control" name="materiel">
						    	<option value="">请选择</option>
						    	<c:forEach items="${spdList}" var="sysParamDict">
						    		<c:if test="${sysParamDict.type==8 }">
								       <option value="${sysParamDict.name }">${sysParamDict.name }</option>
								    </c:if>
								</c:forEach> 
							</select>
						  </div>
					  </div>
					</div>
				</div>
				<div class="modal-footer">
					<div class="col-md-6">
	  					<button type="button" onclick="fileUploadFormSubmit()" class="btn btn-primary btn-block">开始上传</button>
	  				</div>
					<div class="col-md-6">
						<button type="button" class="btn btn-primary btn-block" data-dismiss="modal">取消</button>
					</div>
				</div>
			</form>
		</div>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
</body>

</html>
